<?php

declare(strict_types=1);

namespace App\Model\Users;



use App\Model\Model;

/**
 * @property int $id 
 * @property int $uid 用户 uid
 * @property string $card_name 会员卡名称
 * @property int $card_level 会员卡等级
 * @property int $card_type 会员卡类型，1：一次性入账，2：消费时入账
 * @property string $card_color 会员卡颜色
 * @property string $card_discount 会员卡折扣
 * @property string $card_desc 会员卡备注
 * @property string $card_cids 会员卡关联类目
 * @property int $is_del 删除状态，1：正常，2：锁定，3：删除
 * @property \Carbon\Carbon $created_at 录入时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class UsersCard extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'users_cards';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'card_name', 'card_level', 'card_type', 'card_color', 'card_cids', 'card_discount', 'card_desc', 'is_del', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'card_level' => 'integer', 'card_type' => 'integer', 'is_del' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
